<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ScthtbdatosgenEditDlg" widgetVar="ScthtbdatosgenEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditScthtbdatosgenTitle}">

            <h:form id="ScthtbdatosgenEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{scthtbdatosgenController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_scthtbdatosgenid}" for="scthtbdatosgenid" />
                        <h:outputText id="scthtbdatosgenid" value="#{scthtbdatosgenController.selected.scthtbdatosgenid}" />

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_cedula}" for="cedula" />
                        <p:inputText id="cedula" value="#{scthtbdatosgenController.selected.cedula}" title="#{myBundle.EditScthtbdatosgenTitle_cedula}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_cedula}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_nombres}" for="nombres" />
                        <p:inputText id="nombres" value="#{scthtbdatosgenController.selected.nombres}" title="#{myBundle.EditScthtbdatosgenTitle_nombres}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_nombres}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_apellidopat}" for="apellidopat" />
                        <p:inputText id="apellidopat" value="#{scthtbdatosgenController.selected.apellidopat}" title="#{myBundle.EditScthtbdatosgenTitle_apellidopat}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_apellidopat}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_apellidomat}" for="apellidomat" />
                        <p:inputText id="apellidomat" value="#{scthtbdatosgenController.selected.apellidomat}" title="#{myBundle.EditScthtbdatosgenTitle_apellidomat}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_apellidomat}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_telefono1}" for="telefono1" />
                        <p:inputText id="telefono1" value="#{scthtbdatosgenController.selected.telefono1}" title="#{myBundle.EditScthtbdatosgenTitle_telefono1}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_telefono1}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_telefono2}" for="telefono2" />
                        <p:inputText id="telefono2" value="#{scthtbdatosgenController.selected.telefono2}" title="#{myBundle.EditScthtbdatosgenTitle_telefono2}" />

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_telefono3}" for="telefono3" />
                        <p:inputText id="telefono3" value="#{scthtbdatosgenController.selected.telefono3}" title="#{myBundle.EditScthtbdatosgenTitle_telefono3}" />

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_direccion}" for="direccion" />
                        <p:inputText id="direccion" value="#{scthtbdatosgenController.selected.direccion}" title="#{myBundle.EditScthtbdatosgenTitle_direccion}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_direccion}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_email}" for="email" />
                        <p:inputText id="email" value="#{scthtbdatosgenController.selected.email}" title="#{myBundle.EditScthtbdatosgenTitle_email}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_email}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fecharegistro}" title="#{myBundle.EditScthtbdatosgenTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_nombrefoto}" for="nombrefoto" />
                        <p:inputText id="nombrefoto" value="#{scthtbdatosgenController.selected.nombrefoto}" title="#{myBundle.EditScthtbdatosgenTitle_nombrefoto}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_nombrefoto}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_fechanacimiento}" for="fechanacimiento" />
                        <p:calendar id="fechanacimiento" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechanacimiento}" title="#{myBundle.EditScthtbdatosgenTitle_fechanacimiento}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_passw}" for="passw" />
                        <p:inputText id="passw" value="#{scthtbdatosgenController.selected.passw}" title="#{myBundle.EditScthtbdatosgenTitle_passw}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_passw}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_passwordquestion}" for="passwordquestion" />
                        <p:inputText id="passwordquestion" value="#{scthtbdatosgenController.selected.passwordquestion}" title="#{myBundle.EditScthtbdatosgenTitle_passwordquestion}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_passwordquestion}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_passwordanswer}" for="passwordanswer" />
                        <p:inputText id="passwordanswer" value="#{scthtbdatosgenController.selected.passwordanswer}" title="#{myBundle.EditScthtbdatosgenTitle_passwordanswer}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_passwordanswer}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_aprobado}" for="aprobado" />
                        <p:selectBooleanCheckbox id="aprobado" value="#{scthtbdatosgenController.selected.aprobado}" title="#{myBundle.EditScthtbdatosgenTitle_aprobado}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_aprobado}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_bloqueado}" for="bloqueado" />
                        <p:selectBooleanCheckbox id="bloqueado" value="#{scthtbdatosgenController.selected.bloqueado}" title="#{myBundle.EditScthtbdatosgenTitle_bloqueado}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_bloqueado}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_fechacambiopass}" for="fechacambiopass" />
                        <p:calendar id="fechacambiopass" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechacambiopass}" title="#{myBundle.EditScthtbdatosgenTitle_fechacambiopass}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fechacambiopass}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_fechultimautentusu}" for="fechultimautentusu" />
                        <p:calendar id="fechultimautentusu" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechultimautentusu}" title="#{myBundle.EditScthtbdatosgenTitle_fechultimautentusu}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_fechultimautentusu}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{scthtbdatosgenController.selected.observaciones}" title="#{myBundle.EditScthtbdatosgenTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_fechabloqueo}" for="fechabloqueo" />
                        <p:calendar id="fechabloqueo" pattern="MM/dd/yyyy HH:mm:ss" value="#{scthtbdatosgenController.selected.fechabloqueo}" title="#{myBundle.EditScthtbdatosgenTitle_fechabloqueo}"  showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_scthtbsexosid}" for="scthtbsexosid" />
                        <p:selectOneMenu id="scthtbsexosid" value="#{scthtbdatosgenController.selected.scthtbsexosid}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_scthtbsexosid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{scthtbsexosController.items}"
                                           var="scthtbsexosidItem"
                                           itemValue="#{scthtbsexosidItem}"
                                           itemLabel="#{scthtbsexosidItem.scthtbsexosid.toString()}"
                                           />
                            <f:converter binding="#{scthtbsexosConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditScthtbdatosgenLabel_sclgtbciudadid}" for="sclgtbciudadid" />
                        <p:selectOneMenu id="sclgtbciudadid" value="#{scthtbdatosgenController.selected.sclgtbciudadid}" required="true" requiredMessage="#{myBundle.EditScthtbdatosgenRequiredMessage_sclgtbciudadid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{sclgtbciudadController.items}"
                                           var="sclgtbciudadidItem"
                                           itemValue="#{sclgtbciudadidItem}"
                                           itemLabel="#{sclgtbciudadidItem.sclgtbciudadid.toString()}"
                                           />
                            <f:converter binding="#{sclgtbciudadConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{scthtbdatosgenController.save}" value="#{myBundle.Save}" update="display,:ScthtbdatosgenListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,ScthtbdatosgenEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="ScthtbdatosgenEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
